package cn.yto.wdgj.wdgjgptdigitaltool.feign;

import cn.yto.response.DataResult;
import cn.yto.wdgj.wdgjgptdigitaltool.feign.request.UserEvent;
import cn.yto.wdgj.wdgjgptdigitaltool.feign.response.UtterMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.Map;

/**
 * @author huyue
 * @title xx
 * @Description xx
 * @Date 2024-08-14 10:11
 **/
@FeignClient(name = "wdgj-gpt-talk", contextId = "wdgj-gpt-talk-api", path = "/talk")
public interface WdgjGptTalkFeignClient {

    @PostMapping(value = "/chat/dialog")
    DataResult<UtterMessage> dialog(@RequestHeader Map<String, String> headerMap, @RequestBody UserEvent userEvent);

}